package com.sunzm.dbencrypteddynamic.service.impl;

import com.sunzm.dbencrypteddynamic.model.User;
import com.sunzm.dbencrypteddynamic.dao.UserMapper;
import com.sunzm.dbencrypteddynamic.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author SunZm
 * @since 2024-08-25
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {


    @Override
    public User getUserByUsername(String username) {

        return null;
    }

    @Override
    public User getUserById(Long id) {
        return baseMapper.selectById(id);
    }

    @Override
    public int saveUser(User user) {
        return baseMapper.insert(user);
    }
}
